package com.techsen.tsweb.sys.domain;

import com.techsen.tsweb.sys.security.Principal;

/**
 * 用户
 */
public class User extends Person implements Principal {

    private static final long serialVersionUID = -6378136187265089253L;
    
    /**
     * 登录账户
     */
    private String loginAct;
    
    /**
     *  登录密码
     */
    private String loginPwd;
    
    /**
     * 人员ID
     */
    private String personId;
    
    public String getLoginAct() {
        return loginAct;
    }

    public User setLoginAct(String loginAct) {
        this.loginAct = loginAct;
        return this;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public User setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
        return this;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    @Override
    public String getPrincipalType() {
        return this.getClass().getSimpleName().toLowerCase();
    }

    @Override
    public String getPrincipalId() {
        return this.id;
    }

}
